Crate ntex_codec[][src]

Expand description

Utilities for encoding and decoding frames.

Contains adapters to go from streams of bytes, AsyncRead and AsyncWrite, to framed streams implementing [Sink] and [Stream]. Framed streams are also known as [transports].

Structs

Bytes codec.

A unified interface to an underlying I/O object, using the Encoder and Decoder traits to encode and decode frames. Framed is heavily optimized for streaming io.

FramedParts contains an export of the data of a Framed transport. It can be used to construct a new Framed with a different codec. It contains all current buffers and the inner transport.

A wrapper around a byte buffer that is incrementally filled and initialized.

Traits

Reads bytes from a source.

Writes bytes asynchronously.

Decoding of frames via buffers.

Trait of helper objects to write out messages as bytes.

Functions